import request from '@/utils/request'

// 查询减肥用户列表
export function listJianfeiuser(query) {
  return request({
    url: '/M/jianfeiuser/list',
    method: 'get',
    params: query
  })
}

// 查询减肥用户详细
export function getJianfeiuser(id) {
  return request({
    url: '/M/jianfeiuser/' + id,
    method: 'get'
  })
}

// 新增减肥用户
export function addJianfeiuser(data) {
  return request({
    url: '/M/jianfeiuser',
    method: 'post',
    data: data
  })
}

// 修改减肥用户
export function updateJianfeiuser(data) {
  return request({
    url: '/M/jianfeiuser',
    method: 'put',
    data: data
  })
}

// 删除减肥用户
export function delJianfeiuser(id) {
  return request({
    url: '/M/jianfeiuser/' + id,
    method: 'delete'
  })
}
